#ifndef PEOPLEITEM_H
#define PEOPLEITEM_H

#include <QWidget>
#include"sendmesitem.h"
#include<QVector>
#include<QTimer>
namespace Ui {
class peopleitem;
}

class peopleitem : public QWidget
{
    Q_OBJECT

public:
    explicit peopleitem(QWidget *parent = nullptr);
    ~peopleitem();
    QString Name;
    QString HeadImage;
    QString Lastmes;  //最后一条信息
    bool Lastmeschange=false;
    QString Account;
    QString perosonalsign;
    QVector<sendmesitem*> HistorySendMes;
    QTimer* last_timer=new QTimer(this);   //检测最后一条信息是否更新了
    void init(QString name,QString headimage,QString account,QString lastmes="");
private:
    Ui::peopleitem *ui;
};

#endif // PEOPLEITEM_H
